package com.mocha.bean;

public class User {

    
    private Integer id;
    private String username;
    private String password;
    
    private String email;
    private int age;
    
    private Address address;
    
    public User() { }


    public User(Integer id, String username, String password, String email, int age) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.email = email;
        this.age = age;
    }


    /**
     * id.
     * @return the id
     */
    public Integer getId() {
        return id;
    }


    /**
     * id.
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }


    /**
     * username.
     * @return the username
     */
    public String getUsername() {
        return username;
    }


    /**
     * username.
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }


    /**
     * password.
     * @return the password
     */
    public String getPassword() {
        return password;
    }


    /**
     * password.
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * email.
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * email.
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * age.
     * @return the age
     */
    public int getAge() {
        return age;
    }

    /**
     * age.
     * @param age the age to set
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * address.
     * @return the address
     */
    public Address getAddress() {
        return address;
    }

    /**
     * address.
     * @param address the address to set
     */
    public void setAddress(Address address) {
        this.address = address;
    }



    @Override
    public String toString() {
        return "User [id=" + id + ", username=" + username + ", password=" + password + ", email=" + email + ", age="
                + age + "]";
    }
    
   
}
